package IO;

import java.io.File;

public class Demo3 {

    public static void main(String[] args) {
        File file = new File("./text.txt");

        //删除文件
        boolean ok = file.delete();
        System.out.println(ok);


    }
}
